package cn.xfdzx.android.apps.shop.contract;

import cn.xfdzx.android.apps.shop.base.BaseView;
import cn.xfdzx.android.apps.shop.bean.HomeSearchXFDGoodBeen;
import cn.xfdzx.android.apps.shop.bean.SearchBeen;
import io.reactivex.Flowable;


/**
 * @author azheng
 * @date 2018/6/4.
 * Description：
 */

public interface HomeRetailLevelContract {
    interface Model {
        Flowable<HomeSearchXFDGoodBeen> initSearchData( String lng,  String lat,String sid, String page, String limit,
                                                       String index_status, String is_store, String store_id, String keyword,
                                                       String priceOrder, String salesOrder, String news);


    }

    interface View extends BaseView {
        @Override
        void showLoading();

        @Override
        void hideLoading();

        @Override
        void onError(Throwable throwable);

        void onInitSearchDataSuccess(HomeSearchXFDGoodBeen bean);
        /**
         * 刷新完成
         */
        void finishRefresh();

        /**
         * 加载完成
         */
        void finishLoadMore();
    }

    interface Presenter {
        /**
         *  初始化数据
         */
        void initSearchData(boolean isRefresh, boolean isLoading, String lng,  String lat, String sid, String page, String limit, String index_status, String is_store, String store_id, String keyword, String priceOrder, String salesOrder, String news);

    }
}
